<?PHP
	if(phpversion() >= 5){
		header("Location: install.php");
		die();
	}
	//Try to change PHP-Version to 5.
	if(isset($_SERVER['REDIRECT_HANDLER']) == 'x-mapp-php4'){
		if($handle = @fopen(".htaccess","a")){
			if(@fwrite($handle,"
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php")){
				fclose($handle);
				header("Location:index.php");
			}
		}
	}
?>
 <html>
   <head>
     <title>Falsche PHP-Version</title>
     <style>
       body{
         background-color:#000;
         color:#fff;
         font-family:Tahoma;
         padding-top:50px;
         padding-left:25px;
       }
       .ready{
         color:#aaa;
       }
       .current{
         font-style:italic;
       }
       #logo{
         float:right;
         margin:50px;
       }
       #navigation{
         margin-top:20px;
       }
       #btnBack{
         float:left;
         margin-right:200px;
       }
       a{
         color:#fff;
       }
       a:visited{
         color:#fff;
       }
       #content{
         width:400px;
       }
       .right{
         color:#0f0;
       }
       .wrong{
         color:#f00;
       }
     </style>
 <script type="text/javascript"> window.onload = function() { document.getElementById('next').focus(); } </script> 
   </head>
   <body>
     <img id="logo" src="http://images.contentlion.org/logos/logo-377-295.png" />
         <h1>Falsche PHP-Version</h1>
         <p>ContentLion ben&ouml;tigt PHP in der Version 5. Sie haben leider nur die Version <?PHP echo phpversion(); ?>.</p>
         <p>Sprechen Sie doch mal mit Ihrem Hoster, vielleicht l&auml;sst sich da was machen.</p>
   </body>
 </html>